// Chips
.chip {
  display: inline-block;
  height: $chip-height;
  padding: 0 $chip-padding-right;
  margin-right: $chip-margin-right;
  margin-bottom: $chip-margin-bottom;
  font-size: $chip-font-size;
  font-weight: $chip-font-weight;
  line-height: $chip-line-height;
  color: $chip-font-color;
  cursor: pointer;
  background-color: $chip-background-color;
  border-radius: $chip-br;
  transition: $pagination-page-link-transition;

  &:hover {
    background-color: $grey-lighten-2;
    transition: $pagination-page-link-transition;
  }

  &:focus {
    background-color: $grey-lighten-1;
    transition: $pagination-page-link-transition;
  }

  &:active {
    transition: $pagination-page-link-transition;
    @extend .z-depth-1;
  }

  img {
    float: left;
    width: $chip-img-width;
    height: $chip-img-height;
    margin: 0 $chip-img-margin-right 0 $chip-img-margin-left;
    border-radius: 50%;
  }

  .close {
    float: right;
    padding-left: $chip-close-padding-left;
    font-size: $chip-close-font-size;
    line-height: $chip-close-line-height;
    cursor: pointer;
    transition: all .1s linear;
  }
}

.chips {
  min-height: $chips-min-height;
  padding-bottom: $chips-padding-bottom;
  margin-bottom: $chips-margin-bottom;
  border: none;
  border-bottom: 1px solid $input-border-color;
  outline: none;
  box-shadow: none;
  transition: all .3s;

  &.focus {
    border-bottom: 1px solid $input-md-focus-color;
    box-shadow: 0 1px 0 0 $input-md-focus-color;
  }

  &:hover {
    cursor: text;
  }

  .tag.selected {
    color: $white-base;
    border-bottom: 1px solid $input-md-focus-color;
  }

  .input {
    display: inline-block;
    width: $chips-input-width !important;
    height: $chips-input-height;
    padding: 0 !important;
    margin-right: $chips-input-margin-right;
    font-size: $chips-input-font-size;
    font-weight: $chips-input-font-weight;
    line-height: $chips-input-line-height;
    color: $chips-input-font-color;
    background: none;
    border: 0;
    outline: 0;

    &:focus {
      border: 0 !important;
      box-shadow: none !important;
    }
  }
}

.chips-autocomplete {

  .chips {
    padding-bottom: unset;
  }

  .chip-span {
    position: relative;
    left: -15px;
  }

  .chip-ul {
    position: absolute;
    right: 0;
    z-index: 100;
    width: 140px;
    max-height: 210px;
    padding-left: 0;
    overflow-y: auto;
    list-style-type: none;
    background: #fff;
    outline: none;

    li {
      padding: 12px 15px;
      font-size: .875rem;
      cursor: pointer;

      &:hover {
        background: #eee;
      }
    }
  }
}
